let Mock = require('mockjs')

module.exports = {
    getGoodsList: () =>{
        return Mock.mock({
            status: 0,
            'message': [
                {
                    // id: '@increment',
                    id: '66',
                    title: '小米66',
                    add_time: '@datetime',
                    zhaiyao: '@ctitle(3, 7)',
                    click: '@integer(60,100)',
                    img_url: 'src\\images\\goods\\7ed6090953a4edca0ee6bc4b36cb4a9e.jpg',
                    sell_price: '@integer(60,80)',
                    market_price: '@integer(80,100)',
                    stock_quantity: '@integer(100,120)'
                },
                {
                    // id: '@increment',
                    id: '67',
                    title: '小米67',
                    add_time: '@datetime',
                    zhaiyao: '@ctitle(3, 7)',
                    click: '@integer(60,100)',
                    img_url: 'src\\images\\goods\\7ed6090953a4edca0ee6bc4b36cb4a9e.jpg',
                    sell_price: '@integer(60,80)',
                    market_price: '@integer(80,100)',
                    stock_quantity: '@integer(100,120)'
                },
                {
                    // id: '@increment',
                    id: '68',
                    title: '小米68',
                    add_time: '@datetime',
                    zhaiyao: '@ctitle(3, 7)',
                    click: '@integer(60,100)',
                    img_url: 'src\\images\\goods\\7ed6090953a4edca0ee6bc4b36cb4a9e.jpg',
                    sell_price: '@integer(60,80)',
                    market_price: '@integer(80,100)',
                    stock_quantity: '@integer(100,120)'
                }
            ]
        })
    },
    getGoodsDetail: ()=>{
        return Mock.mock({
            status: 0,
            'message|1': [
                {
                    id: '66',
                    title: '小米66',
                    add_time: '@datetime',
                    goods_no: '@integer(8)',
                    sell_price: '@integer(60,80)',
                    market_price: '@integer(80,100)',
                    stock_quantity: '@integer(100,120)'
                }
            ]
        })
    },
    getCarList: ()=>{
        return Mock.mock({
            status: 0,
            'message': [
                {
                    cou: 1,
                    id: '66',
                    title: '小米66',
                    sell_price: '@integer(60,80)',
                    thumb_path: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/0099822e42b4428cb25c4cdebc6ca53d.jpg?thumb=1&w=250&h=250&f=webp&q=90',
                },
                {
                    cou: 1,
                    id: '67',
                    title: '小米67',
                    sell_price: '@integer(60,80)',
                    thumb_path: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/0099822e42b4428cb25c4cdebc6ca53d.jpg?thumb=1&w=250&h=250&f=webp&q=90',
                },
                {
                    cou: 1,
                    id: '68',
                    title: '小米68',
                    sell_price: '@integer(60,80)',
                    thumb_path: 'https://cdn.cnbj1.fds.api.mi-img.com/mi-mall/0099822e42b4428cb25c4cdebc6ca53d.jpg?thumb=1&w=250&h=250&f=webp&q=90',
                }
            ]
        })
    }
}
